#app {
  // 主体区域
  background: #fff;

  .main-container {
    height: 100%;
    overflow: auto;
    transition: margin-left .28s;
    margin-left: 220px;
    background: #fff;
  }

  .headerPort {
    transition: left 0.28s;
    position: fixed;
    top: 0px;
    right: 0px;
    left: 220px;
    box-shadow: 0px 1px 1px #b3b3b3;
    z-index: 1000;
  }

  .sidebar-header {
    transition: 0.28s;
    width: 220px;
    position: fixed;
    font-size: 0px;
    top: 0;
    left: 0;
    z-index: 1001;
    background: #252a2e;
    overflow: hidden;

    .title {
      width: 100%;
      height: 50px;
      background: #30373f;
      text-align: center;
      line-height: 50px;

      span {
        transition: font 0.28s;
        color: #fff;
        font-size: 18px;
      }
    }

    .head-portrait {
      width: 180px;
      padding-top: 25px;
      text-align: center;

      div {
        margin: auto;
        height: 100px;
        width: 100px;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      p {
        width: 180px;
        color: #fff;
        line-height: 20px;
        font-size: 16px;
      }

    }
  }

  // 侧边栏
  .sidebar-container {
    transition: width 0.28s;
    width: 220px !important;
    height: 101%;
    position: fixed;
    font-size: 0px;
    top: -3px;
    bottom: -5px;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    //reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      height: calc(100% + 16px);

      .el-scrollbar__view {
        height: 100%;
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;

      .el-menu {
        a {
          li {
            background: #4e5963 !important;

          }
        }
      }
    }
  }

  .hideSidebar {
    .sidebar-header {
      width: 36px !important;
      height: 50px;

      .title {
        height: 50px;

        span {
          font-size: 16px;
        }
      }

      .head-portrait {
        display: none;
      }
    }

    .sidebar-container {
      width: 36px !important;
      height: 101%;
    }

    .main-container {
      margin-left: 36px;
    }

    .headerPort {
      left: 36px;
    }

    .el-menu {
      .menu-wrapper {
        position: relative;
        top: 50px;


      }

    }

    .submenu-title-noDropdown {
      padding-left: 10px !important;
      position: relative;

      .el-tooltip {
        padding: 0 10px !important;
      }
    }

    .el-submenu {
      overflow: hidden;

      & > .el-submenu__title {
        padding-left: 10px !important;

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        & > .el-submenu__title {
          & > span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .sidebar-container .nest-menu .el-submenu > .el-submenu__title,
  .sidebar-container .el-submenu .el-menu-item {
    min-width: 220px !important;
    background-color: $subMenuBg !important;
    height: 40px !important;
    line-height: 40px !important;
    padding-left: 66px !important;
    font-size: 14px !important;

    &:hover {
      background-color: $menuHover !important;
    }

    &.is-active {
      background-color: $menuHover !important;
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: 180px !important;
  }

  //适配移动端
  .mobile {
    .sidebar-header {
      width: 180px;
    }

    .main-container {
      margin-left: 0px;
    }

    .headerPort {
      left: 0px;
    }

    .sidebar-container {
      transition: transform .2s;
      width: 180px !important;
    }

    &.hideSidebar {
      .sidebar-container {
        transition-duration: 0.2s;
        transform: translate3d(-180px, 0, 0);
      }
    }

    .sidebar-container .el-submenu .el-menu-item {
      padding-left: 55px !important;
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
